package com.netease;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * Description:
 * <p>
 * Created by aochong on 2022/12/19
 *
 * @author aochong
 * @version 1.0
 */
@SpringBootApplication
/**扫描 mybatis 通用 mapper 所在的包*/
@MapperScan(basePackages = "com.netease.mapper")
/**扫描所有包以及相关组件包*/
@ComponentScan(basePackages = {"com.netease", "org.n3r.idworker"})
@EnableScheduling
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}